package de.dailab.graphworld.ontology;

import de.dailab.jiactng.agentcore.knowledge.IFact;

/**
 * This is an implementation of a message that is widely used in communication
 * between broker and scout, and broker and carrier.
 *
 * @author Kseniya
 */
public class Reply implements IFact {

    private Task task;
    private ReplyType type;

    public Reply(Task task, ReplyType type) {
        this.task = task;
        this.type = type;
    }

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    /**
     * Get the value of type
     *
     * @return the value of type
     */
    public ReplyType getType() {
        return type;
    }

    /**
     * Set the value of type
     *
     * @param type new value of type
     */
    public void setType(ReplyType type) {
        this.type = type;
    }
}
